
package dieci.hibernate;

import dieci.database.PersistentObject;

/**
 *
 * @author DuckSys
 */
public class HibOrderRawMaterialDetailId implements PersistentObject{

    private Long orderRawMaterialId;
    private Long rawMaterialId;

    public HibOrderRawMaterialDetailId()
    {
    }

    public HibOrderRawMaterialDetailId(Long orderRawMaterialId, Long rawMaterialId)
    {
        this.orderRawMaterialId = orderRawMaterialId;
        this.rawMaterialId = rawMaterialId;
    }
        
    
    /**
     * Get the value of orderRawMaterialId
     *
     * @return the value of orderRawMaterialId
     */
    public Long getOrderRawMaterialId()
    {
        return orderRawMaterialId;
    }

    /**
     * Set the value of orderRawMaterialId
     *
     * @param orderRawMaterialId new value of orderRawMaterialId
     */
    public void setOrderRawMaterialId(Long orderRawMaterialId)
    {
        this.orderRawMaterialId = orderRawMaterialId;
    }

    public Long getRawMaterialId()
    {
        return rawMaterialId;
    }

    public void setRawMaterialId(Long rawMaterialId)
    {
        this.rawMaterialId = rawMaterialId;
    }

    
    @Override
    public boolean equals (Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (!(obj instanceof HibOrderRawMaterialDetailId))
            return false;
        final HibOrderRawMaterialDetailId other = (HibOrderRawMaterialDetailId) obj;
        if (!this.getOrderRawMaterialId().equals(other.getOrderRawMaterialId()))
            return false;
        if (!this.getRawMaterialId().equals(other.getRawMaterialId()))
            return false;
        return true;
    }

    @Override
    public int hashCode ()
    {
        int hash = 7;
        hash = 61 * hash + (int) (this.getOrderRawMaterialId() ^ (this.getOrderRawMaterialId() >>> 32));
        hash = 61 * hash + (int) (this.getRawMaterialId().hashCode() ^ (this.getRawMaterialId().hashCode() >>> 31));
        return hash;
    }

}
